@extends('web.frame_layout')
<link rel="stylesheet" href="{{asset('web/css/withdrawal-record.css')}}">
<?php $parent_menu = "财务中心"; $menu_selected = "转换记录";?>
@section('content')
    <div class="m-right-nr">
        <div>
            <h2><span>{{$menu_selected}}</span></h2>
        </div>
        <div class="m-txList">
            <div class="m-txList-title">
                <form action="{{route('web.bonus')}}" action ="get" id="txjl_search">
                    <select name="type" >
                        <option value="1" selected>编号搜索</option>
                        <option value="2">用户名搜索</option>
                    </select>
                    <div>
                        <input type="text" name="search" placeholder="请输入编号进行精准查询">
                        <button>搜索</button>
                    </div>
                </form>
            </div>
            <div class="table-responsive">
                <table class="table">
                    <tr>
                        <th>编号</th>
                        <th>原币种</th>
                        <th>转换金额</th>
                        <th>目标币种</th>
                        <th>手续费</th>
                        <th>最终金额</th>
                        <th>时间</th>
                    </tr>
                    @foreach($switchLogs as $log)
                        <tr>
                            <td>{{ $log->no }}</td>
                            <td>
                                @if($log->real_coin == \App\Models\MWallet::$WALLET_TYPE_1)
                                    奖金币
                                @elseif($log->real_coin == \App\Models\MWallet::$WALLET_TYPE_2)
                                    报单币
                                @elseif($log->real_coin == \App\Models\MWallet::$WALLET_TYPE_3)
                                    购物币
                                @endif
                            </td>
                            <td>{{ $log->real_money }}</td>
                            <td>
                                @if($log->final_coin == \App\Models\MWallet::$WALLET_TYPE_1)
                                    奖金币
                                @elseif($log->final_coin == \App\Models\MWallet::$WALLET_TYPE_2)
                                    报单币
                                @elseif($log->final_coin == \App\Models\MWallet::$WALLET_TYPE_3)
                                    购物币
                                @endif
                            </td>
                            <td>{{ $log->tax_money  }}</td>
                            <td>{{ $log->final_money }}</td>
                            <td>{{ date("Y-m-d H:i:s",$log->time) }}</td>
                        </tr>
                    @endforeach


                </table>
                @include('web.coms.fenye')
            </div>
        </div>
    </div>
@endsection

@section('footer')
@endsection